package com.example.librarymanagementsystembackend.usermanagement.aspect;



import com.example.librarymanagementsystembackend.borrowingmanagement.entity.BorrowBooksDTO;
import com.example.librarymanagementsystembackend.usermanagement.entity.UserAction;
import com.example.librarymanagementsystembackend.usermanagement.service.UserActionService;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

@Aspect
@Component
public class UserActionLoggingAspect {

    private final UserActionService userActionService;

    public UserActionLoggingAspect(UserActionService userActionService) {
        this.userActionService = userActionService;
    }

    @Around("@annotation(com.example.librarymanagementsystembackend.usermanagement.annotation.LogUserAction)")
    @Transactional
    public Object logUserAction(ProceedingJoinPoint joinPoint) throws Throwable {
        return null;
    }
}
